module.exports = {
    env: {
        NODE_ENV: '"production"'
    },
    defineConstants: {},
    terser: {
        enable: true,
        config: {
            compress: {
                drop_debugger: true,
                pure_funcs: ['console.log']
            }
        }
    },
    mini: {
        minifyXML: {
            collapseWhitespace: true
        },
        commonChunks: ['runtime', 'vendors', 'taro', 'common', 'vant'],
        webpackChain(chain) {
            chain.plugin('HardSourceWebpackPlugin').use(require('hard-source-webpack-plugin'));
        }
    }
};
